package org.zxp.json;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

/**
 * @program: effectiveJava
 * @description:
 * @author: X-Pacific zhang
 * @create: 2020-11-26 14:29
 **/
public class Test {
    public static void main(String[] args){
        //Pojo p = new Pojo();
        //p.setApply_Dumn("123");
        //String string = JSON.toJSONString(p);
        //JSONObject jsonObject = JSON.parseObject(string, JSONObject.class);
        //System.out.println(jsonObject);
        Pojo p = new Pojo();
        p.setApply_Dumn("123");
        JSONObject jsonObject  = (JSONObject) JSON.toJSON(p);
        System.out.println(jsonObject);
    }
}
